class SolutionLCR114 {
    public TreeNode flipTree(TreeNode root) {
         if(root == null) return null ; 
         TreeNode left = root.left ; 
         TreeNode right = root.right  ; 
        root.left = flipTree(right) ; 
        root.right = flipTree(left) ;
        return root ; 
    }
}